import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

const store = new Vuex.Store({
	// 定义状态
	state: {
		author: "Wise Wrong1"
	},
	mutations:{
		newAuthor(state,msg){
			state.author = msg;
		}
	}
});

export default store;